package com.yuchen.ishop.entity;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 订单
 */
@Table("t_orders")
public class Order implements Serializable {

    @Id
    private Long id;

    @Column("order_no")
    private String orderNo;

    @Column("sub_order_no")
    private String subOrderNo;

    @Column("goods_id")
    private Long goodsId;

    @Column("seller_id")
    private Long sellerId;

    @Column("buyer_id")
    private Long buyerId;

    @Column("state")
    private Long state;

    @Column("create_time")
    private Timestamp createTime;

    @Column("send_time")
    private Timestamp sendTime;

    @Column("cancel_time")
    private Timestamp cancelTime;

    @Column("return_time")
    private Timestamp returnTime;

    @Column("change_time")
    private Timestamp changeTime;

    @Column("complete_time")
    private Timestamp completeTime;

    @Column("price")
    private Double price;

    @Column("real_price")
    private Double realPrice;

    @Column("logistics_company")
    private String logisticsCompany;

    @Column("buy_seller_id")
    private Long buySellerId;

    @Column("buy_xiaoer_id")
    private Long buyXiaoerId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getSubOrderNo() {
        return subOrderNo;
    }

    public void setSubOrderNo(String subOrderNo) {
        this.subOrderNo = subOrderNo;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Long getSellerId() {
        return sellerId;
    }

    public void setSellerId(Long sellerId) {
        this.sellerId = sellerId;
    }

    public Long getBuyerId() {
        return buyerId;
    }

    public void setBuyerId(Long buyerId) {
        this.buyerId = buyerId;
    }

    public Long getState() {
        return state;
    }

    public void setState(Long state) {
        this.state = state;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getSendTime() {
        return sendTime;
    }

    public void setSendTime(Timestamp sendTime) {
        this.sendTime = sendTime;
    }

    public Timestamp getCancelTime() {
        return cancelTime;
    }

    public void setCancelTime(Timestamp cancelTime) {
        this.cancelTime = cancelTime;
    }

    public Timestamp getReturnTime() {
        return returnTime;
    }

    public void setReturnTime(Timestamp returnTime) {
        this.returnTime = returnTime;
    }

    public Timestamp getChangeTime() {
        return changeTime;
    }

    public void setChangeTime(Timestamp changeTime) {
        this.changeTime = changeTime;
    }

    public Timestamp getCompleteTime() {
        return completeTime;
    }

    public void setCompleteTime(Timestamp completeTime) {
        this.completeTime = completeTime;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getLogisticsCompany() {
        return logisticsCompany;
    }

    public void setLogisticsCompany(String logisticsCompany) {
        this.logisticsCompany = logisticsCompany;
    }

    public Long getBuySellerId() {
        return buySellerId;
    }

    public void setBuySellerId(Long buySellerId) {
        this.buySellerId = buySellerId;
    }

    public Long getBuyXiaoerId() {
        return buyXiaoerId;
    }

    public void setBuyXiaoerId(Long buyXiaoerId) {
        this.buyXiaoerId = buyXiaoerId;
    }

    public Double getRealPrice() {
        return realPrice;
    }

    public void setRealPrice(Double realPrice) {
        this.realPrice = realPrice;
    }
}
